<?php
//database informatie
//$dbhost = "localhost";
//$dblogin = "jouwlogin";
//$dbw8wrd = "jouww8wrd";
//$dbnaam = "databasenaam";
require_once('pasmy/dbbckp.php');
//Maak verbinding
mysql_pconnect("$dbhost","$dblogin","$dbw8wrd") && @mysql_select_db("$dbnaam");
$query = mysql_query('SHOW TABLE STATUS') or die(mysql_error());
while($row = mysql_fetch_assoc($query)){
$sql = 'SHOW CREATE TABLE '.$row['Name'].'';
$query2 = mysql_query($sql) or die(mysql_error());
//Toon tabelnaam
echo "<b>Tabelnaam: {$row['Name']} bevat volgende gegevens:</b><br>";
$out = mysql_fetch_assoc($query2);
$sql = 'SELECT * FROM '.$row['Name'];
$out = mysql_query($sql);
$sql_code = '';
while($code = mysql_fetch_array($out,MYSQL_ASSOC))
{
foreach($code as $insert => $value)
{
$sql_code.=$insert ."='".addslashes($value)."',";
//Toon gegevens van de tabel
echo $insert.":&nbsp;".addslashes($value)."<br>";
        }
    }
}
?>